﻿using System;
using System.Configuration;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using Wicresoft.SelfService.BL;


namespace Wicresoft.SelfService.Portal.Controllers
{
    public class BaseController : Controller
    {
        private static string _cookieKey;

        protected override void OnException(ExceptionContext filterContext)
        {
            LogHelper.Error(filterContext.Exception.StackTrace + filterContext.Exception.Message, filterContext.Exception);
            base.OnException(filterContext);
            //filterContext.Result = View();
            filterContext.Result = View("Error", filterContext.Exception);
            filterContext.ExceptionHandled = true;
        }

    }
}